package com.msun.dao;

import com.github.pagehelper.Page;
import com.msun.pojo.CheckGroup;
import com.msun.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CheckGroupDao {
    void addRefer(@Param("groupId") Integer groupId, @Param("itemId") Integer itemId);
    public void add(CheckGroup checkGroup);
    public void setCheckGroupAndCheckItem(Map map);
    public Page<CheckGroup> findByCondition(String queryString);
    public CheckGroup findById(Integer id);
    public List<Integer> findCheckItemIdsByCheckGroupId(Integer id);
    public void edit(CheckGroup checkGroup);
    public void deleteAssocication(Integer id);
    public List<CheckGroup> findAll();
    List<CheckGroup> findCheckGroups(Integer checkGroupId);
    List<String> fingBySetmaelId(Integer setId);
    int group4setmeal(Integer id);
    void deleteRefer(Integer groupId);
    void delete(Integer id);
    void addGroup(CheckGroup checkGroup);
    Page<CheckGroup> findPage(String query);
    List<CheckItem> findItemIdByGroup(Integer id);
}
